package com.zhou.project.modules.activity.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zhou.project.components.base.entity.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@TableName("ucc_activity")
@ApiModel("[活动管理-活动创建-数据模型]")
public class Activity extends Base {

    /**活动名称*/
    @ApiModelProperty(name = "name",value = "活动名称",required = true,dataType = "String")
    @NotBlank(message = "姓名不能为空")
    @Length(min = 4,max = 20,message = "活动名称的长度应为{min}-{max}之间")
    private String name;

    /**活动介绍*/
    @ApiModelProperty(name = "introduce",value = "活动介绍",required = true,dataType = "String")
    @NotBlank(message = "活动的介绍不能为空")
    @Length(min = 4,max = 200,message = "活动介绍的长度应为{min}-{max}之间")
    private String introduce;

    /**大学名称*/
    @ApiModelProperty(name = "universityId",value = "大学id",required = true,dataType = "Integer")
    @NotNull(message = "大学的id不能为空")
    private Integer universityId;


}
